<?php

namespace app\lib\exception;



class ImageException extends BaseException
{


    public static function img_name($img_type = ''){
        switch ($img_type){
            case '1':
                $type = 'visa';
                break;
            case '2':
                $type = 'hotel';
                break;
            case '3':
                $type = 'car';
                break;
            case '4':
                $type = 'ticket';
                break;
            case '5':
                $type = 'wifi';
                break;
        }
        return $type;
    }

    public static function img_type($img_type = ''){
        switch ($img_type){
            case '0':
                $type = '1';
                break;
            case '3':
                $type = '2';
                break;
            case '4':
                $type = '3';
                break;
            case '5':
                $type = '4';
                break;
            case '6':
                $type = '5';
                break;
        }
        return $type;
    }

}